#[repr(packed)]
pub struct Rgb {
    pub b: u8,
    pub g: u8,
    pub r: u8,
    pub a: u8,
}

pub fn get_fb(x: usize, y: usize, fb_pointer: u32) -> &'static mut [Rgb] {
    let size = x * y;
    let p = fb_pointer as *mut Rgb;
    unsafe { core::slice::from_raw_parts_mut::<'static, Rgb>(p, size) }
}
